package com.github.shiqiyue.blog.markdown.config.druid;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/***
 * druid连接池配置
 *
 * @author wwy
 *
 */
public class DruidConfig {
	private Logger logger = LoggerFactory.getLogger(getClass());
	
	private String url;
	
	private String username;
	
	private String password;
	
	private String driverClassName;
	
	private String filters;
	
	private int maxActive;
	
	private int initialSize;
	
	private int maxWait;
	
	private int minIdle;
	
	private int timeBetweenEvictionRunsMillis;
	
	private int minEvictableIdleTimeMillis;
	
	private String validationQuery;
	
	private boolean testWhileIdle;
	
	private boolean testOnBorrow;
	
	private boolean testOnReturn;
	
	private int maxOpenPreparedStatements;
	
	private boolean removeAbandoned;
	
	private int removeAbandonedTimeout;
	
	private boolean logAbandoned;
	
	private int timeBetweenLogStatsMillis;
	
	public Logger getLogger() {
		return logger;
	}
	
	public void setLogger(Logger logger) {
		this.logger = logger;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getDriverClassName() {
		return driverClassName;
	}
	
	public void setDriverClassName(String driverClassName) {
		this.driverClassName = driverClassName;
	}
	
	public String getFilters() {
		return filters;
	}
	
	public void setFilters(String filters) {
		this.filters = filters;
	}
	
	public int getMaxActive() {
		return maxActive;
	}
	
	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}
	
	public int getInitialSize() {
		return initialSize;
	}
	
	public void setInitialSize(int initialSize) {
		this.initialSize = initialSize;
	}
	
	public int getMaxWait() {
		return maxWait;
	}
	
	public void setMaxWait(int maxWait) {
		this.maxWait = maxWait;
	}
	
	public int getMinIdle() {
		return minIdle;
	}
	
	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}
	
	public int getTimeBetweenEvictionRunsMillis() {
		return timeBetweenEvictionRunsMillis;
	}
	
	public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) {
		this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis;
	}
	
	public int getMinEvictableIdleTimeMillis() {
		return minEvictableIdleTimeMillis;
	}
	
	public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) {
		this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
	}
	
	public String getValidationQuery() {
		return validationQuery;
	}
	
	public void setValidationQuery(String validationQuery) {
		this.validationQuery = validationQuery;
	}
	
	public boolean isTestWhileIdle() {
		return testWhileIdle;
	}
	
	public void setTestWhileIdle(boolean testWhileIdle) {
		this.testWhileIdle = testWhileIdle;
	}
	
	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}
	
	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
	
	public boolean isTestOnReturn() {
		return testOnReturn;
	}
	
	public void setTestOnReturn(boolean testOnReturn) {
		this.testOnReturn = testOnReturn;
	}
	
	public int getMaxOpenPreparedStatements() {
		return maxOpenPreparedStatements;
	}
	
	public void setMaxOpenPreparedStatements(int maxOpenPreparedStatements) {
		this.maxOpenPreparedStatements = maxOpenPreparedStatements;
	}
	
	public boolean isRemoveAbandoned() {
		return removeAbandoned;
	}
	
	public void setRemoveAbandoned(boolean removeAbandoned) {
		this.removeAbandoned = removeAbandoned;
	}
	
	public int getRemoveAbandonedTimeout() {
		return removeAbandonedTimeout;
	}
	
	public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) {
		this.removeAbandonedTimeout = removeAbandonedTimeout;
	}
	
	public boolean isLogAbandoned() {
		return logAbandoned;
	}
	
	public void setLogAbandoned(boolean logAbandoned) {
		this.logAbandoned = logAbandoned;
	}
	
	public int getTimeBetweenLogStatsMillis() {
		return timeBetweenLogStatsMillis;
	}
	
	public void setTimeBetweenLogStatsMillis(int timeBetweenLogStatsMillis) {
		this.timeBetweenLogStatsMillis = timeBetweenLogStatsMillis;
	}
	
}